package de.cbf.cam.dsa.rcp.model.persistence.xml.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import de.cbf.cam.dsa.rcp.model.persistence.xml.act.ActivatorRCPModelPersistence;

/**
 * Class used to initialize default preference values.
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer {

	/*
	 * (non-Javadoc)
	 *
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
	 */
	public void initializeDefaultPreferences() {
		IPreferenceStore store = ActivatorRCPModelPersistence.getDefault().getPreferenceStore();

		store.setDefault(PreferenceConstants.P_EXTENSION_RACE		,".race.xml");
		store.setDefault(PreferenceConstants.P_EXTENSION_CULTURE	,".cult.xml");
		store.setDefault(PreferenceConstants.P_EXTENSION_PROFESSION	,".prof.xml");
		store.setDefault(PreferenceConstants.P_EXTENSION_STRUCTURE	,".struct.xml");
	}
}
